import request from '@/utils/request'

// 查询代理人列表
export function listAgent(query) {
    return request({
      url: '/backstage/sys/select/agency',
      method: 'get',
      params: query
    })
  }

  // 新增代理人
export function addAgent(data) {
    return request({
      url: '/backstage/sys/assign',
      method: 'post',
      data: data
    })
  }
    // 修改代理人
export function upAgent(data) {
    return request({
      url: '/backstage/sys/update/agency',
      method: 'post',
      data: data
    })
  }

 
      // 删除代理人
export function delAgent(data) {
  return request({
    url: '/backstage/sys/delete/agency',
    method: 'post',
    data: data
  })
}

  // 批量上传代理人
  export function addsAgent(data) {
    return request({
      url: '/backstage/sys/add/excel',
      method: 'post',
      data: data
    })
  }

  // 查询非代理人用户详细
export function getVirtualUser(query) {
    return request({
      url: '/backstage/sys/find/agents',
      method: 'get',
      params: query
    })
  }

    // 查询绑定学生详细
export function getUserList(query) {
  return request({
    url: '/backstage/sys/get/list',
    method: 'get',
    params: query
  })
}
    // 查询学生明细
    export function getStuList(query) {
      return request({
        url: '/backstage/sys/find/student',
        method: 'get',
        params: query
      })
    }

      // 查询到期明细
      export function getMonthList(query) {
        return request({
          url: '/backstage/sys/find/expire',
          method: 'get',
          params: query
        })
      }